<?php


namespace app\api\validate;



class AddressValidate extends BaseValidate
{
    protected $rule = [
        'name|姓名' => 'require|isNotEmpty',
        'mobile|手机号码' => 'require|isMobile',
        'province|省份' => 'require|isNotEmpty',
        'city|城市' => 'require|isNotEmpty',
        'country|国家' => 'require|isNotEmpty',
        'detail|详细地址' => 'require|isNotEmpty'
    ];

    protected $message = [
        'mobile.isMobile' => '手机号不合法'
    ];
}